<?php include TMPL_PATH.'public/header.phtml';?>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
    	<div style="float:left;margin-right:50px;">
        <a href='javascript:;' class="on"><em>尺码对照列表</em></a><span>|</span>
        <a href='javascript:add();' ><em>添加尺码</em></a>
      </div>
      
    </div>
</div>
<div class="bk"></div>
<div class="pad_10">
<div class="table-list">
    <table width="30%" cellspacing="0" >
        <thead>
          <tr>
            <th width="30">ID</th>
            <th align='center' width="100">尺码</th>
			<th align='center' width="80">管理操作</th>
          </tr>
        </thead>
    <tbody>
    <?php 
   	if(isset($shoes_size_data_list) && $shoes_size_data_list):
   		foreach ($shoes_size_data_list as $v):
   ?>
			<tr>
					<td align='center'><?php echo $v['id']?></td>
					<td align='center'><?php echo $v['cn_size']?></td>
					<td align='center'> 
					<a href="javascript:edit('<?php echo $v['id']?>');">修改</a>&nbsp;&nbsp;|&nbsp;&nbsp;
					<a href="javascript:confirmurl('<?php echo U('product/shoes_size_delete', 'id='.$v['id']);?>','确认要删除吗？')">删除</a>
					</td>
				</tr>
	<?php 
		endforeach;
		endif;
	?>
   </tbody>
    </table>
	<div id="pages"><?php echo $pageShow;?></div>
</div>
</div>
</body>
</html>
<script type="text/javascript">

    function edit(vid) {
        window.top.art.dialog({title:'修改尺码', id:'edit', iframe:'<?php echo U('product/shoes_size_edit');?>&id='+vid ,width:'500px',height:'100px'},function(){var d = window.top.art.dialog({id:'edit'}).data.iframe;
            var form = d.document.getElementById('dosubmit');form.click();return false;}, function(){window.top.art.dialog({id:'edit'}).close()});
    }
    function add() {
        window.top.art.dialog({title:'添加鞋子尺码', id:'add', iframe:'<?php echo U('product/shoes_size_add');?>' ,width:'500px',height:'100px'}, 	function(){var d = window.top.art.dialog({id:'add'}).data.iframe;
            var form = d.document.getElementById('dosubmit');form.click();return false;}, function(){window.top.art.dialog({id:'add'}).close()});
    }

</script>